import net.slashie.libjcsi.CharKey;
import net.slashie.libjcsi.ConsoleSystemInterface;
import net.slashie.libjcsi.wswing.WSwingConsoleInterface;

public class VisibleChars {
	private ConsoleSystemInterface csi = new WSwingConsoleInterface(
			"visible chars");

	public static void main(String[] p) {
		new VisibleChars().run();
	}

	public void run() {
		showChars(0);
		for (int i = 0; i < 10000; i += 250) {
			showChars(i);
		}
		System.exit(0);
	}

	private void showChars(int start) {
		csi.cls();
		for (int i = 0; i < 250; i++, start++) {
			csi.print((i / 25) * 8, i % 25, start + " = " + ((char) start));
		}
		csi.refresh();
		CharKey inkey = csi.inkey();
		if (inkey.code == CharKey.ESC) {
			System.exit(0);
		}
	}
}
